package io.renren.modules.workflow.service;

import io.renren.common.utils.AjaxResult;
import io.renren.modules.workflow.entity.ActBusWorkflowData;
import io.renren.modules.workflow.entity.dto.ActBusProcessInstanceStartParams;

import java.util.List;

/**
 * @Desc: 流程实例服务接口
 * @auther: landlord
 * @date: 2021/7/26 18:06
 * @return:
 */
public interface IActBusProcessInstanceService {

     //启动流程实例业务
     public AjaxResult startWorkFlowProcess(ActBusProcessInstanceStartParams actBusProcessInstanceStartParams);
     //根据当前任务获取下一个任务办理人集合
     public AjaxResult nextTaskHandlePeople(String taskId);
     //关闭发起暂存的流程实例以及任务
     public AjaxResult closeFirstTask(String abwdId);
     //查询所有运行中的流程
    public List<ActBusWorkflowData> selectProcessMonitoringList(ActBusWorkflowData actBusWorkflowData);
    //流程监控 中人工中止流程
     public AjaxResult stopWorkFlowInstance(String abwdId);
    //取消关闭流程
    public AjaxResult closeWorkFlowInstance(String abwdId);
    //取消流程发布
    public AjaxResult cancelWorkFlow(String abwdId,String deploymentId);
}
